<template>
    <div>
        <h1>登录页面</h1>
        <div>
            <button @click="doLogin">登录</button>
        </div>
    </div>
</template>

<script>
    import CUtils from '../util/cookies'
    export default {
        name: "Login",
        methods:{
            doLogin(){
                // 省略了具体的登录逻辑
                CUtils.addCookie("isLogin","true");
            }
        }
    }
</script>

<style scoped>

</style>